#include "devinfo.h"

#include <QDebug>

DevInfo::DevInfo()
{
    m_id.clear();
    m_name.clear();
    m_dev.clear();
    m_pos.clear();
}

DevInfo::DevInfo(const QString &id, const QString &name,
           const QString &dev, const QString &pos)
{
    m_id = id;
    m_name = name;
    m_dev = dev;
    m_pos = pos;
}

void DevInfo::display(void) const
{
    qDebug()  << "DevInfo: "<< m_id << ", " <<
                 m_name << ", " << m_dev << ", " << m_pos;
}

void DevInfo::setID(const QString &id)
{
    m_id = id;
}

void DevInfo::setName(const QString &name)
{
    m_name = name;
}

void DevInfo::setDev(const QString &dev)
{
    m_dev = dev;
}

void DevInfo::setPos(const QString &pos)
{
    m_pos = pos;
}

const QString &DevInfo::getID() const
{
    return m_id;
}
const QString &DevInfo::getName() const
{
    return m_name;
}
const QString &DevInfo::getDev() const
{
    return m_dev;
}
const QString &DevInfo::getPos() const
{
    return m_pos;
}

